package com.itheima.mapper;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderMapper {
    Order findByCondition(Order order);

    void add(Order order);

    Map findById(@Param("id")Integer id);

    //今日到诊数
    Integer findTodayOrderNumber(@Param("today") String today);
    //本周或者本月预约数
    Integer findOrderNumberAfterDate(@Param("date") String thisWeekMonday);
    //今日到诊数
    Integer findTodayVisitsNumber(@Param("today") String today);
    //本周或者本月到诊数
    Integer findVisitsNumberAfterDate(@Param("date") String thisWeekMonday);
    //热门套餐
    List<Map<String, Object>> findHostSetmeal();
}
